| Author |
Message |
dvrtmcc
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
Member
|
 Posted:
July 24, 2008 - 06:09 AM |
|
| 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. |
|
|
|
 |
Bonzo
MD user level 5


Joined: Sep 15, 2004
Posts: 57
Location: Rome - Italy
bannato
|
 Posted:
July 26, 2008 - 12:02 AM |
|
|
|
|
 |
dvrtmcc
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
|
 Posted:
July 26, 2008 - 01:27 AM |
|
|
UpDownload-1.82final_7
mdpro10821
PHP version is 4.4.2
MySQL version is 4.1.18 |
|
|
|
 |
dvrtmcc
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
|
 Posted:
Aug 11, 2008 - 08:45 PM |
|
|
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? |
|
|
|
 |
dvrtmcc
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
|
 Posted:
Aug 11, 2008 - 09:41 PM |
|
|
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>";
|
|
|
|
|
 |
dvrtmcc
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
|
 Posted:
Aug 11, 2008 - 10:11 PM |
|
|
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>";
|
|
|
|
|
 |
dvrtmcc
MD user level 4


Joined: Apr 04, 2008
Posts: 41
Location: BIH
bannato
|
 Posted:
Aug 11, 2008 - 10:46 PM |
|
|
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>";
|
|
|
|
|
 |
Bonzo
MD user level 5


Joined: Sep 15, 2004
Posts: 57
Location: Rome - Italy
bannato
|
 Posted:
Oct 16, 2008 - 06:53 AM |
|
|
|
|
 |
|
|