My community is one of readers; because of this, we need a mechanism in place to provide for *spoiler code* so that things won't appear in active topics.
... that, along with Fahd's suggestions, allowed me to have the spoiler code within our posts.
Trust me. It's a life-saver. There are some women who get mighty if their stories are spoiled in any way, shape, or form.
----
Because of where this code is added seemed *weird* compared to the Advanced Ubb_code, I decided to see if I could play with it.
I came up with this:
Code
$match++ if $_[0] =~ s/([SPOILER])/$vars_wordlets_mods{spoiler}/isg;
On straight replies, this WOULD NOT work; however, if I replied with quote, it would.
Weird, eh?
So I thought I'd come over here and seek out your shared brilliance in how to fix this problem.
But I also took another look at the links.cgi page, and wouldn't you know it? CONFLICT!
Here's an example of the message I get:
Quote
quote:Software error: Global symbol "%vars_wordlets_mods" requires explicit package name at ubb_lib.cgi line 2051, line 64. BEGIN not safe after errors--compilation aborted at ubb_lib.cgi line 2593, line 64. and
quote: [qb][Sun Apr 4 18:18:58 2004] links.cgi: Global symbol "%vars_wordlets_mods" requires explicit package name at ubb_lib.cgi line 2051, line 64. [Sun Apr 4 18:18:58 2004] links.cgi: BEGIN not safe after errors--compilation aborted at ubb_lib.cgi line 2593, line 64. Compilation failed in require at links.cgi line 80, line 64. [/qb]
------
Needless to say, I need the spoiler hack badly for my community, so unless someone can see a way to help me make it *instant code* AND have it compatible with this add-on, there's no way I can have the links.cgi page.
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.