![]() |
RE: Adopts News
Quote:
|
RE: Adopts News
I don't get a problem posting articles with just ''''''''''''''' in, they go in fine. It's when I use stuff like "I'm, I'll, Bloodrun's, Saphira's, BMR's" etc.
|
RE: Adopts News
Quote:
|
RE: Adopts News
I've just done a completely fresh install of both the adoptables script, and of the news script. I'm getting the exact same error. The only thing I've changed in the whole thing is the detail section in the database from varchar to LONGTEXT.
|
RE: Adopts News
Quote:
|
RE: Adopts News
Exactly the same. If you want I can link you to the test site where I'm trying to fix this.
|
RE: Adopts News
Bloodrun, are you running the secure function twice on the data? That could potentially add two sets of quotes.
Also, is PHP Magic Quotes enabled on the server having this error? That may also cause issues as that automatically tries to escape data in some situations, which secure() takes care of. |
RE: Adopts News
Quote:
It might be possible Ill check. The second thing, I believe your talking to Saphira, so yeah.. lol |
RE: Adopts News
I used
PHP Code:
|
RE: Adopts News
No, if magic quotes are off that's fine. If they were on, which they are on by default on some real old PHP installs, that could account for double slashes on ' marks and thus why the single quotes would not appear correctly.
Since they are off though the single quotes not appearing correctly is not caused by what I thought it might be. |
RE: Adopts News
Hmm. I'm trying to edit site_news.php so that the people who can post news are the user groups editors and admins. This is what I've been playing with:
PHP Code:
PHP Code:
PHP Code:
|
RE: Adopts News
If you just want to have only admins and news editors edit the page, do this:
PHP Code:
PHP Code:
|
RE: Adopts News
I had to change that a lil' bit, but I got it to work. :D
Finished code: PHP Code:
|
RE: Adopts News
Quote:
Theres no me in it.. lol =P only kidding, nicely done. =D |
RE: Adopts News
Haha thank you. now all I need to do is figure out that pesky aspostrophe. ¬.¬
The triforce power shall help me!  ▲                                            ▲ –² |
RE: Adopts News
Quote:
|
RE: Adopts News
I know what forum you're referring to, but I was referring to Zelda. =P
Quote:
|
RE: Adopts News
IDIDITIDIDITIDIDIT!
PHP Code:
WHO'S THE MAN! |
RE: Adopts News
Quote:
*Just kidding* But wai- Are you a man? I just guessed by the name but... I might be wrong? Congratz, for solving this anyway. |
RE: Adopts News
I am male. Saphira is the name of my favourite fictional character of all time. She's the beautiful dragon from Eragon/Eldest/Brisingr. =P
|
RE: Adopts News
Quote:
Quote:
|
RE: Adopts News
Quote:
PHP Code:
|
RE: Adopts News
Quote:
|
RE: Adopts News
Okay, last step that I'm struggling on to get this perfected. I want the users in user group 6 to be able to delete news as well as admins, so if they mess up when they post, they don't have to wait for me to come online to delete it. I've tried 5 or 6 different things to get this to work, and nothing has yet. :S Any help? =^.^=
|
RE: Adopts News
Quote:
Doing this will require a new page, and it will also require that you not only delete the news part, but the replies as well. |
RE: Adopts News
on the site_news.php, i click the add_news.php. i try to post a news, but when i try to add news, it's ERROR..
i also try the add_reply.php but it says error, contact administrator (bloodrun) i just uploaded the files on the file manager of my site.. where the other php's are.. |
RE: Adopts News
Well what error are you getting?
Did you follow the instructions step by step? Did you tinker with the files? Are you sure your MySql tables are in the correct database? |
RE: Adopts News
i just follow what you said on your first post. and i didnt do anything more.
about the error.. it simply says "ERROR" on mysite/add_news.php |
RE: Adopts News
i did it!yeay, this is cool!!
btw, is it possible to add new mod that is like this, but nut news, i want to make 1 for "games" |
RE: Adopts News
Quote:
|
RE: Adopts News
Eeep, I got this working on Suffering Spooks but it's not going as well on Rhypets.
The page is at http://www.rhypets.com/V2/news.php?nid=1 as as you can see it screws up the template quite a bit. It's only that page that does it, all the other ones in this mod work fine with my template. Here's my template if you need it... Code:
<head> |
RE: Adopts News
Quote:
This is why I don't suggest, that if you are new to HTML, that you use a template like this. |
All times are GMT -5. The time now is 09:07 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.