Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 04:17 pm EST
Geeklog Forums
Autotag plugin
Page navigation
jmucchiello
ronack
I save it then it looks like this
I'm pretty sure the extra slashes are because of Magic Quotes which it didn't seem to matter where I put this
I can't get rid of them. I think maybe my line numbers aren't matching up. So if you give me the line number also tell me what should be above or below.
jmucchiello
Do you have magic quotes on in your php.ini?
jmucchiello
Find the call to saveautotags toward the end of /public_html/admin/plugins/autotags/index.php and replace the call with:
COM_applyFilter($_POST['old_tag']),
COM_applyFilter($_POST['description']),
COM_applyFilter($_POST['is_enabled']),
COM_applyFilter($_POST['is_function']),
COM_stripslashes($_POST['replacement']));
I'll package and release a real update shortly.
ronack
Something interesting happened, it fixed both issues.
Also here's another interesting feature, I use Snap Shots on that site. Check out the link now.
http://www.nc-emt.com/article.php?story=20071115180224368
I'll leave the link there for awhile so folks can look at it but since it was a test area it will be removed in a few weeks.
Thank
I really like your plug in, Great Job
Ron
Benta
Another issue I have is that the base url for a site is not the site name but really http:sitename.com/somesubdirectory.
That last part, some subdirectory isn't coming out with #U...only http:sitename.com.
Otherwise the idea is splendid!
Benta
I am too lazy to write real plugins because my mods are things only I need. My mods are simply static pages and functions that look into tables with data having zilch to do with blogging (it is an intranet site used keep track of development).
Since autotags are resolved in static pages, I wanted to use autotags to make it unnecessary to ever write PHP myself in the pages.... 8)
Benta
That last part, some subdirectory isn't coming out with #U...only http:sitename.com.
I was wrong about that. It works. The problem was another one:
I looked at the code, and you are sometimes (in the topic function) using the curly bracket replacing (the one for the themes). That doesn't work in static pages....
jmucchiello
I looked at the code, and you are sometimes (in the topic function) using the curly bracket replacing (the one for the themes). That doesn't work in static pages....
return "<a href=\"{$_CONF['site_url']}/index.php?topic=".urlencode($p1)."\">".htmlspecialchars($topic)."</a>";
The global $_CONF is even there for it. I add that to my list of bug fixes.
Benta
Where does this go?
I"m guessing at line 339 of functions.inc is that correct?
I think it is more like 354 or something. In the phpautotags_topic function anyway.
But I think that one is there more as an example on how to make php functions for autotags, which I think is very clever. A topic autotag, on the other hand, should simply have
ronack
I thinking here at the bottom where it says return.
{
global $_TABLES, $_CONF;
$topic = DB_getItem($_TABLES['topics'], 'topic', "tid = '$p1'" . COM_getTopicSQL('AND'));
// Comment out the line above and uncomment the line below if you
// don't care whether or not users can see the names of topic they
// cannot access.
// $topic = DB_getItem($_TABLES['topics'], 'topic', "tid = '$p1'");
if (empty($topic))
return "<B>Unknown Topic</B>";
$topic = stripslashes($topic);
return "<a href=\"{site_url}/index.php?topic=$p1\">$topic</a>";
}
jmucchiello
Benta, the reason to have a topic function (aside from as an example) is to have it obey your permissions settings. Read the comment.
beewee
A pity, since this is one of the best plugins ever!
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
jmucchiello
beewee
I haven't tried it on 1.5 yet. I'll look into it soon.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
mst3kroqs
I haven't tried it on 1.5 yet. I'll look into it soon.
I believe it is in the area of rendering admin menus ... I think Joe may have actually written a 'compatibility wrapper' for that.
BTW - autotags did not work for me on my local 1.5.0rc2 testsite.
It seemed to install just fine, but the 'built-in' cipher/topic/lang tags show as Enabled=No, and also the poll/youtube autotags don't expand. Disable autolinks is 'False' in Configuration.
Page navigation
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content