Guests can add news

Download plugins, language packs and stuff.

Postby FI-DD » Thu Nov 22, 2007 6:57 pm

RDM wrote:Ok now, this works great. But I found a bug:

If two or more guests enter the same title, when you will see the news in full story, you will see all of them with the same title.

Fixed for future news. Please re-download.

You have to manually change the "url" field in "Edit news" for already existing news showing this error.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Partyism » Fri Nov 23, 2007 11:31 am

You ARE the best FI-DD!!!!
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby Partyism » Fri Nov 23, 2007 4:57 pm

Is there also a way to add bbcode to this?
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby FI-DD » Fri Nov 30, 2007 3:00 pm

Please re-download... :wink:
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Partyism » Mon Dec 03, 2007 9:29 am

ill check it out

edit: only the img bbcode links to # te rest is fine
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby FI-DD » Tue Dec 04, 2007 6:40 pm

Yes, you'll have to remove the image link because it links to the image manager.

Copy and paste the insertTag() function in inc/functions.inc.php and rename the new function to insertTag2(). Remove the image button from that new function. Then open guest.php and change insertTag to insertTag2, too.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Partyism » Wed Dec 05, 2007 9:45 am

Thnx, only i didnt delete the img function.
I just made it so:

Code: Select all
<a href=\"javascript:insertext('<img src=&quot;Imagelink&quot;',' />','$insert_location')\" title='Addimage'><img src=".$config_http_script_dir."/skins/images/tags/img.gif border=0 align=middle></a>


That when a guest clicks on the IMG bbcode you'll get:
<img src="Imagelink" />
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby cybaGS » Fri Jan 25, 2008 12:15 pm

how to add xfields in this script?

<input type="text" name="xfield[image]" id="xfield[image]" value="">

doesn't affect anything when i write something in the textarea :(
cybaGS
 
Posts: 37
Joined: Wed Jun 27, 2007 7:10 pm

Postby erlendfl » Fri Oct 31, 2008 2:13 pm

How to make an access-level here?
Is it enough to do this:
Code: Select all
   'latest_comment' => $added_time,
         'url'      => namespace2(totranslit($title)),
         [b]'access' => '4',[/b]
         'hidden'   => false


Or do I have to fix the code more?
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby FI-DD » Fri Oct 31, 2008 2:18 pm

There's no field in the news table for "access". So that's where you should begin: create a new field to save the access. After that you need some code in inc/show.news.php which checks for the access level.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby erlendfl » Fri Oct 31, 2008 3:05 pm

I tried with my solution, and then the guest.php doesn't show up if you go to cutepath/guest.php. But if i include it in a user-restricted-area it shows up. So that works, but its not the best solution I guess.
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby erlendfl » Sat Nov 01, 2008 3:50 am

Never mind my question here FI-DD.
I had to remove include("../cutepath/head.php") from guest.php, so it would not work, unless it is included in root/index.php where head.php is included in the header. So basically you don't need to set acces-level for plugins you include, and needs to have head.php included in the head-tags, when you remove it from the main-plugin-file.

That's correct, FI-DD?
(sorry for the bad english) :)
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby webbber » Mon Dec 22, 2008 6:47 pm

nice. Working great. I have installed this plugin for user that wanna send videos from Youtube or any other videos website.
You can check it at nnnshow.com/enviar.php, but If You click it from the homepage you can see the form in a popup. No captcha cause this form is blocked by robots.txt (check it)

suggestions?
webbber
 
Posts: 155
Joined: Thu May 15, 2008 1:13 am

How can guests upload avatar

Postby svennis » Sat Feb 20, 2010 9:57 pm

Is it possible to let guests upload a picture and insert it to avatar field?
svennis
 
Posts: 94
Joined: Mon Oct 09, 2006 2:54 pm

Postby eberswine » Tue Jul 27, 2010 8:02 pm

ok, this would be great to integrate for CNR... (DarkSlim, hope you remember the money I deposited :-)

Anyways, my current client really wants a way to have a "User Photo Submission page" (so we can approve or delete user images on the fly through the CNR admin center!!! .. But here is the specs that would be ideal.

* We only need one upload field for the photo and then obviously like a caption and place for their email credit
* Have it go into the database (like the guest news,.. then we would approve it and/or delete it)
* Have it notify you by email (like guest news)
* Have it check certain file type (only jpg or jpeg) -- be nice to make an array so we can change on the fly (different form the admin image config)
* Have it restrict to a file size too. (easily controlled) by bytes or what not.
* Then only make it writeable to one folder (so they cannot pick which folder or have them able to create new) We would pick the folder in the back-end

What do you guys think? This would be great!!

I will share a 4 month project website using CNR here very shortly. I did some pretty neat stuff with it :-)
User avatar
eberswine
 
Posts: 281
Joined: Thu Apr 26, 2007 7:23 pm

PreviousNext

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 1 guest