Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
derek765
Regular
Regular



Joined: Sep 27, 2012
Posts: 99
Location: Okinawa, Japan

PostPosted: Thu Jan 03, 2013 3:25 am Reply with quote

Edit: Seems in this whole file the alt and title are set to be the same source, when the alt text serves as alternative content when the image cannot be displayed and the title text is used to provide additional information.

Have found a minor error in the Topics Module, which will cause validation errors, not even a huge problem at all, but just something to mention.

Line 58 of modules/Topics/index.php:
Code:
<img src="' . $t_image . '" border="0" alt="' . $topictext . '" title="' . $topictext . '" />


I have tried changing it to:

Code:
<img src="' . $t_image . '" border="0" alt="' . $topictext . '" title="' . $topicname . '" />


But doesn't seem to cure the error, and really don't see where else the validation error in that file could be.
 
View user's profile Send private message Visit poster's website
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1512

PostPosted: Thu Jan 03, 2013 4:37 am Reply with quote

Make sure you have read the descriptions of topictext and topicname. Its important to save both variables with the right setting.

Topic Name:
(just a name without spaces - max: 20 characters)
(for example: gamesandhobbies)

Topic Text:
(the full topic text or description - max: 40 characters)
(for example: Games and Hobbies)

BTW you can't get an validation error with an empty topictext in the title-attribute.

for example in xHTML:

Code:
<img src="http://www.ravenphpscripts.com/themes/fisubice/images/RavenWebServices_BannerN.gif" alt="" title="" />

_________________
Github: RavenNuke 
View user's profile Send private message
derek765







PostPosted: Thu Jan 03, 2013 4:47 am Reply with quote

Yes I have read that and mine for example looks like:

Topic Name: websitesecuritynews
Topic Text: Website Security News

But what it is doing is pulling the alt and title as the same, its pulling the topic text only.

Code:


alt="' . $topictext . '" title="' . $topictext . '" />
 
neralex







PostPosted: Thu Jan 03, 2013 5:04 am Reply with quote

The topictext is the output-description of the topic and the topicname is the internal setting to work with the cms functions, eg shortlinks, search etc. That is the reason why it was set the topictext in this place.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©