![]() |
Connecting to mysql when you click
Hi,
I try to add "broken link" function into one of plugins. In postbit plugin when you click the text, it add your ip and titleid into mysql. But i don't know what should i write for a href. In the thread if i click the link, it doesnt work but writing the link to the web browser address bar and clicking ENTER. It Works... like this: https://vborg.vbsupport.ru/showthrea...=67731?do=link Code:
<plugin active="1" executionorder="5"> Code:
<template name="showthread_extra_fields" templatetype="template" date="1140414721" username="uname" version="1"><![CDATA[] |
When you say it doesn't work, what do you mean? Does anything happen at all when you click it?
Edit: also, your "It's OK" message contains a single quote (apostrophe), so that makes the quotes mismatched. |
Quote:
When i click, only alert message comes.. Nothing adds into database.. |
Any help ?
|
I don't know why it wouldn't work if the url is correct. Have you ever used the Firebug addon for FireFox? It might let you see if a call is being made, or if there are any javascript errors occuring. Have you tried it without any onClick? (Probably you added that later as a test).
Also, the url you have above has two '?' in it, I think what you want is: Code:
href="/showthread.php?t=$post[threadid]&do=link" but I don't think that would keep it from working at all (it should still at least reload the page, I think). |
Quote:
Code:
href="/showthread.php?t=$post[threadid]&do=link" Thanks a lot :) |
All times are GMT. The time now is 06:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|