Nov 23, 2008 | 07:47 AM  
Welcome

Don't have an account yet? You can create one, it is free, just click here

as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.

 • •  Control Panel - Register - Login  • • 
Current Stable MDPro Lite 1.0821 Download
  Forum FAQForum FAQ   SearchSearch  UsergroupsUsergroups  PreferencesPreferences  Options forumOptions forum  Watched TopicsWatched Topics  Watched ForumsWatched Forums
Latest forum posts Latest forum posts  Log in to check your private messages Log in to check your private messages    Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dvrtmcc
MD user level 4
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
Member
Post  Posted: July 24, 2008 - 06:09 AM Reply with quote Back to top
Post subject: Get first sentence from download item and put it as title

How to get first sentence of download item so I could use it like title for that item?
I'm using Updownload module. Maybe someone will know this code but I'm not so sure for this one, I think this should be pulled off from Mysql database.
View user's profile
Bonzo
MD user level 5
MD user level 5


Joined: Sep 15, 2004
Posts: 57
Location: Rome - Italy
bannato
Post  Posted: July 26, 2008 - 12:02 AM Reply with quote Back to top

Hi,
you use Updownload 1.82 or Updownload 1.82 Final 7 ?
And you version of MDPro?
Version of PHP and MYSQL?

Thanks...

Greetings

_________________
Bonzo (aka Matteo Carletti)

www.isartegiovagnoli.com - Istituto Statale d'Arte di Sansepolcro e Anghiari
www.agriturismoilsasso.it || www.agriturismoanghiari.it
www.beccacciaiditalia.com
View user's profile Visit poster's website
dvrtmcc
MD user level 4
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
Post  Posted: July 26, 2008 - 01:27 AM Reply with quote Back to top

UpDownload-1.82final_7
mdpro10821
PHP version is 4.4.2
MySQL version is 4.1.18
View user's profile
dvrtmcc
MD user level 4
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
Post  Posted: Aug 11, 2008 - 08:45 PM Reply with quote Back to top

I have pulled out a string from wl-viewlink.php in Web_Links module and made it as a title.
It is a simple Seo help and all you need to do is to put this as a first line of your wl-viewlink.php file in Web links. Useful if you have a lot of categories.
Code:
<title>"._CATEGORY.": ".CatPath($cid,0,0,0)."</title>";

Maybe someone will find this useful.
But how to pull out a title of a link from wl-linkdetails.php file and make it as title for that page?
View user's profile
dvrtmcc
MD user level 4
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
Post  Posted: Aug 11, 2008 - 09:41 PM Reply with quote Back to top

And also to show category title and ID in UpDownload module you need to write in the second line of dl-viewdownload.php this:

Code:
$cattitle = downloads_CatNameFromCID($cid);
echo "<title>ID: $cid - $cattitle</title>";
View user's profile
dvrtmcc
MD user level 4
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
Post  Posted: Aug 11, 2008 - 10:11 PM Reply with quote Back to top

And to show Web Link detail in the title of the page of Web_Links module:
In the second line of wl-linkdetails.php write:

Code:
$displaytitle = displaytitle($lid);
echo "<title>".pnVarPrepForDisplay($displaytitle)." - Web Link details</title>";
View user's profile
dvrtmcc
MD user level 4
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
Post  Posted: Aug 11, 2008 - 10:46 PM Reply with quote Back to top

And finally for the UpDownload module you can see details title.
To see SEO title of the downloads in UpDownload module you need to write in the dl-downloaddetails.php file on the second line:

Code:
    $transfertitle = ereg_replace ("_", " ", $ttitle);
    $displaytitle = $transfertitle;
echo "<title>$displaytitle - Download details - Download now</title>";
View user's profile
Bonzo
MD user level 5
MD user level 5


Joined: Sep 15, 2004
Posts: 57
Location: Rome - Italy
bannato
Post  Posted: Oct 16, 2008 - 06:53 AM Reply with quote Back to top

This is interesting.
Thanks for your suggestions.

Greetings

_________________
Bonzo (aka Matteo Carletti)

www.isartegiovagnoli.com - Istituto Statale d'Arte di Sansepolcro e Anghiari
www.agriturismoilsasso.it || www.agriturismoanghiari.it
www.beccacciaiditalia.com
View user's profile Visit poster's website
Display posts from previous:     
Jump to:  
All times are GMT + 13 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by MDForum 2.0.8© 2003-2007 MAXdev Team
Credits