<br />// -----------------------------<br />// Make sure they should be here<br /> if (($user['U_Status'] != 'Administrator') && ($user['U_Status'] != 'Moderator')) {<br /> $html -> not_right ("You must be logged in, and be a valid administrator to access this.",$Cat);<br /> }<br />
REPLACE WITH:
Code
<br />// -----------------------------<br />// Make sure they should be here<br /> if (($user['U_Status'] != 'Administrator')) {<br /> $html -> not_right ("You must be logged in, and be a valid administrator to access this.",$Cat);<br /> }<br />
Ah, another problem.. when submitted a new link I get
Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in g:\webs\www.bm3w.co.uk\public_html\ubbthreads\links_submit_link.php on line 93 Could not notify admin
[]MattUK said: Ah, another problem.. when submitted a new link I get
Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in g:\webs\www.bm3w.co.uk\public_html\ubbthreads\links_submit_link.php on line 93 Could not notify admin
Do we need to set an address somewhere? [/]
It uses the forum's email address set in the control panel. Double-check that your forum's email address is a current legit one.
Thank you for this Update. The V1.83 is the first version behond 1.5 that will work on my server. But the are 2 typo bugs in links_submitrate_link.php On Line 39 and 59 you must add \ to the " around the word top or you get an error while trying to rate a link.
This mod adds search capability to TLD. Links title and description are searched and the found search term is bolded. Perhaps Allen or Josh would be so kind as to integrate my changes into the latest and greatest release because my changes may not include those contributed by other users since I last worked on this script. The integration should be minor because I only changed one script and one template. Enjoy.
Files:
links_search_links.php (new script to go with your other links scripts) links.php (you may need to modify the path to links_search_links.php) links_header.tmpl (this replaces links_header.tmpl in your templates/default directory) search.gif (new icon - this goes in your images directory)
3. Added a configurable option to specify the minimum number of votes required before a link will appear on the Top Rated page and before the 'stars' ratings will appear next to a link. [/]
The stars appear in the 'Most Popular' list regardless of how the configuration option is set. Fixed this. Allen, please integrate into the lastest release - this is a very small mod.
After review the files your should take a look to links_popular_links.php The header contains wrong version descriptions and in line 58 is an alt tag missing after /images/popular-c.gif\ witch was in your last update.
I have a question about your directory structure for this modification. I put he language files in the UBBt language directory so I have to edit the line
require ("languages/{$myprefs['language']}/links.php"); to require ("./languages/{$myprefs['language']}/links.php");
in some files. There should be a note in the installation description about the directory location.
I have never used TLD...and basically all I need is an online script that will handle my bookmarks. I get tired of using multiple PCs and managing the bookmarks on each, so I am going to start using my personal site to do so. Easy enough to lock away if I need.
My question is this - should I install this mod on my family's threads site and use it for my personal use, or is this a bit 'robust' for one user? I am sure there are a bunch of random non-integrated bookmark scripts out there, but figured I would start here.
I just added this one to my site (after manually creating the tables). I can't get it to work -every time I submit a link I get:
You have not filled out the form completely. Please hit your back button and try again.
After digging through the scripts that erro is triggered in the links_submit_links.php file by the following code:
Code
// Check to see if the form was filled out completely <br /> <br /> if (!filled_out($HTTP_POST_VARS)) { <br /> print "<center><b>{$ubbt_lang['LINKS_SUBMIT_FILLED_OUT']}</b></center>"; <br /> $html -> send_footer(); <br /> exit; <br /> }
It looks like the function that checks to see if all of the $HTTP_POST_VARS are avaialble is failing. Any ideas?
Allen please post the scripts that Threads Dev is using for this hack so I can use Beyond Compare to see what the differences are between the scripts that work here, and the ones in the mod.
I finally figured out how to fix it -it's not pretty but it works. Since there are only 4 variables that are user selectable I decided to only check for those 4:
Code
foreach ($HTTP_POST_VARS as $key => $value);<br /><br />// Check to see if the form was filled out completely<br />if ( (!isset($cat_id) || ($cat_id == "")) || (!isset($url) || ($url == "")) || (!isset($title) || ($title == "")) || (!isset($description) || ($description == "")) ) {<br /> print "<center><b>{$ubbt_lang['LINKS_SUBMIT_FILLED_OUT']}</b></center>";<br /> $html -> send_footer();<br /> exit;<br /> } else {
After the else the rest of the script to check the url and enter the data in the database executes.
my provider changed the webserver a little bit and my TLD2 stop working correct in some functions. It doesnt show any error.
I can enter the main page of TLD. All looks nice and correct. If I click on a category it goes to it but show only every time the same link only (only one and every time the same). It doesn't show me the correct content of the category.
I can click on what I like, I get every time the same result showing me the one and only link and the categorys. The DB contains 138 Links.
Click I 'Most Popular' I see some of my links. If I try to follow a link the redirector show me an empty page (in firefox). In IE it take me back to my board main index.
I try do delete one of the Most Popular links, got the correct message that this link is deleted but after I revisit Most Popular it is still intact and I have 138 links.
If I try to edit a category or link I get the error that not all is filled out correctly.
I can remeber that this problem have to do with global variables or something like this. Anyone who know this effect and have a solution? I like TLD and have to bring it to work again. I need some help.
If I try to submit a link I get: http:// is not a valid url or is temporarily unavailable. Please check the url by clicking on the link and try again.
Seems be related to the post/get bug from Dalantech and maybe Threads 6.5.5 .... I changed the threads version von 6.5.4 to 6.5.5 some days bevore the server changes and not test the TLD *shame*.
/edit: I try to apply the fix for links_submit_link.php from dalantech above, but I ancounter some problems ... still working and cant find out to put it in the right place.
Update: I m on the way. I compare V1.5 to V2.0 and bring some old sript parts to V2. It begins to work but I guess its realy unsafe to XSS. The Links Categories shows now correect, but there is alot more work to do.
/edit: I include in most cases some code like this (example redirector):
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.