| View previous topic :: View next topic |
| Author |
Message |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Derek765 Blingaholic


Joined: Nov 25, 2012 Posts: 20
|
Posted: Fri Dec 07, 2012 12:15 am Post subject: |
|
|
Got this mod installed, but not displaying images, just a link as shown in this picture below:
I check to make sure I had the images,php and tpl files uploaded properly at these locations:
IMAGE UPLOAD LOCATIONS
/themes/fisubice/forums/images/thumbs-up.png
/themes/fisubice/forums/images/thumbs-down.png
/modules/Forums/templates/subSilver/images/thumbs-up.png
/modules/Forums/templates/subSilver/images/thumbs-down.png
KARMA_BODY.TPL UPLOAD LOCATIONS
/modules/Forums/templates/subSilver/karma_body.tpl
/themes/fisubice/forums/karma_body.tpl
KARMA.PHP UPLOAD LOCATIONS
/modules/Forums/karma.php
 |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
Posted: Fri Dec 07, 2012 6:19 am Post subject: |
|
|
Since you also have the Shoutbox in the header, you will need to make a change to the modules/Shout_Box/shout.php
Open it and find:
php Code:global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $cookie, $currentlang, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang, $user_prefix, $name;
if ($name=='Forums') {
|
Replace it with:
php Code:global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $cookie, $currentlang, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang, $user_prefix, $name, $file;
if ($name == 'Forums' and $file != 'karma') {
|
_________________ Tricked Out News
Last edited by bobby on Fri Dec 07, 2012 6:02 pm; edited 1 time in total |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Derek765 Blingaholic


Joined: Nov 25, 2012 Posts: 20
|
Posted: Fri Dec 07, 2012 4:01 pm Post subject: |
|
|
Yes it was the issue with the forums.cfg.
This fixed the images not showing up.
php Code:$images['icon_plus'] = "$current_template_images/thumbs-up.png";
$images['icon_minus'] = "$current_template_images/thumbs-down.png";
|
The modules/Shout_Box/shout.php I replaced what you said with that, but looks like it was typed a little to fast, but I fixed it with this.
php Code:global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $cookie, $currentlang, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang, $user_prefix, $name, $file;
if ($name == 'Forums' AND $file = 'karma') {
|
Now my last couple issues, is the shout box showing when a user gives a comment about karma in the pop-up window, they have to scroll down to see the section where to give a comment, now how could I go about just showing the comments box and not the Shout Box in the pop-up window? |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
Posted: Fri Dec 07, 2012 5:46 pm Post subject: |
|
|
OK, here are the ShortLink taps. I am having an issue with mod_rewrite on xampp so I was not able to totally test them. The one for the popup did not work for some reason.
Code:
.htaccess
RewriteRule ^forum-karma-down-([0-9]*).html modules.php?name=Forums&file=karma&u=$1&k=m [L]
RewriteRule ^forum-karma-up-([0-9]*).html modules.php?name=Forums&file=karma&u=$1&k=p [L]
RewriteRule ^forum-karma-true.html modules.php?name=Forums&file=karma&added=true [L]
RewriteRule ^forum-karma.html modules.php?name=Forums&file=karma [L]
GT-Forums.php
'"(?<!/)modules.php\?name=Forums&file=karma&u=([0-9]*)&k=m"',
'"(?<!/)modules.php\?name=Forums&file=karma&u=([0-9]*)&k=p"',
'"(?<!/)modules.php\?name=Forums&file=karma&added=true"',
'"(?<!/)modules.php\?name=Forums&file=karma"',
'forum-karma-down-\\1.html',
'forum-karma-up-\\1.html',
'forum-karma-true.html',
'forum-karma.html',
|
_________________ Tricked Out News
Last edited by bobby on Sat Dec 08, 2012 8:24 am; edited 2 times in total |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
Posted: Fri Dec 07, 2012 6:01 pm Post subject: |
|
|
You need to change
php Code:global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $cookie, $currentlang, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang, $user_prefix, $name, $file;
if ($name == 'Forums' AND $file = 'karma') {
|
to
php Code:global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $cookie, $currentlang, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang, $user_prefix, $name, $file;
if ($name == 'Forums' and $file != 'karma') {
|
The exclamation mark in front of the equal sign means does not equal in php. What we are saying is If the $name variable in the url is Forums and the $file does not equal karma then do this. _________________ Tricked Out News |
|
| Back to top |
|
 |
Derek765 Blingaholic


Joined: Nov 25, 2012 Posts: 20
|
Posted: Fri Dec 07, 2012 10:49 pm Post subject: |
|
|
For some reason, when I added these to the GT-Forums.php, it gives my site a blank page.
php Code:'"(?<!/)modules.php\?name=Forums&file=karma&u=([0-9]*)&k=m"',
'"(?<!/)modules.php\?name=Forums&file=karma&u=([0-9]*)&k=p"',
'"(?<!/)modules.php\?name=Forums&file=karma&added=true"',
'"(?<!/)modules.php\?name=Forums&file=karma"',
'forum-karma-down-\\1.html',
'forum-karma-up-\\1.html',
'forum-karma-true.html',
'forum-karma.html',
|
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Derek765 Blingaholic


Joined: Nov 25, 2012 Posts: 20
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Derek765 Blingaholic


Joined: Nov 25, 2012 Posts: 20
|
|
| Back to top |
|
 |
|
|